
$(':button#preview').click(function() {
  var $dialog, converter, value;
  value = $('#:valueId').val();
  converter = new Markdown.Converter();
  $('#value').html(converter.makeHtml(value));
  $dialog = $("#answer-preview");
  return $dialog.dialog("open");
});
